<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<title>Master List</title>
</h:head>

<h:body>

	<ui:composition template="/WEB-INF/templates/1000_layout.xhtml">
    		<ui:param name="menuMasterListClass" value="selected" />

		<ui:define name="content">

			<h:form id="form">
			
				<p:fieldset legend="Master List">
					<p:dataTable var="item" value="#{dtMasterItemLazyView.lazyModel}"
						paginator="true" rows="10"
						paginatorTemplate="{RowsPerPageDropdown} {FirstPageLink} {PreviousPageLink} {CurrentPageReport} {NextPageLink} {LastPageLink}"
						rowsPerPageTemplate="5,10,15" id="itemTable" lazy="true">
						<p:column headerText="Id" sortBy="#{item.id}"
							filterBy="#{item.id}">
							<h:outputText value="#{item.id}" />
						</p:column>
						<p:column headerText="Name" sortBy="#{item.name}"
							filterBy="#{item.name}">
							<h:outputText value="#{item.name}" />
						</p:column>
						<p:column headerText="Description" sortBy="#{item.description}"
							filterBy="#{item.description}">
							<h:outputText value="#{item.description}" />
						</p:column>
						<p:column headerText="Brand Seller" sortBy="#{item.seller.name}"
							filterBy="#{item.seller.name}">
							<h:outputText value="#{item.seller.name}" />
						</p:column>
					</p:dataTable>
				</p:fieldset>
				
				<p:fieldset legend="Add Item" toggleable="true" toggleSpeed="500"
					collapsed="true">
				</p:fieldset>
			</h:form>

		</ui:define>

	</ui:composition>
</h:body>
</html>